#pragma once

#include "..\..\Inc\Center\CheckTree.h"    

// CDlgCalcList dialog

class CDlgCalcList : public CDialog
{
	DECLARE_DYNAMIC(CDlgCalcList)
private:
	BOOL		m_bInit ;
private:
	void	InitTree();
	void	DelChildItem(HTREEITEM   hItem);
	BOOL	CheckChildItem(HTREEITEM   hItem);
	void	CheckChildItem(HTREEITEM   hItem,BOOL bCheck);
	int		GetChildItemMapCount(HTREEITEM hItem);
	void	GetChildItemMapIDs(HTREEITEM hItem,int* pMapIDs,int* nCount);
public:
	int		GetMapCount();
	void	GetMapIDs(int* pMapIDs);
public:
	CDlgCalcList(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgCalcList();
// Dialog Data
	enum { IDD = IDD_Dlg_CalcList };
	BOOL m_bDraw;
	BOOL m_bEdit;
	CCheckTreeCtrl	m_Tree ;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg void OnBnClickedBtnAll();
	afx_msg void OnBnClickedBtnClear();
	afx_msg void OnBnClickedBtnCur();
	afx_msg void OnBnClickedChkEdit();
	afx_msg void OnBnClickedChkDraw();
};
